package resource;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @Author quan
 * @Description TODO
 * @Date 2023/7/14 15:30
 */
public class Main {
    public static void main(String[] args) {
        ApplicationContext context = new ClassPathXmlApplicationContext("spring-config.xml");
        UserController controller = (UserController) context.getBean("userController");
        controller.sayHi();
    }
}
